]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/location: Change permission table
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 11 Aug 2021 20:54:39 +0000 (22:54 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 12 Aug 2021 22:39:45 +0000 (22:39 +0000)
There is now a location portal that provides a similar role
as our agent. Settings supports that portal in its application
panel, which allows users to revisit their choice later.

Unfortunately it uses a different permission store table, so
any permissions granted (or denied) through our agent won't
show up there.

To change that, switch to the same table as the portal/Settings.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1945>

js/ui/status/location.js

index 1d2658c707322865d63f07b6efb81ffce01a0a01..7e0222b72c4549e37c6fc6ee80bb985bfe48fa1a 100644 (file)
@@ -16,8 +16,8 @@ const LOCATION_SCHEMA = 'org.gnome.system.location';
 const MAX_ACCURACY_LEVEL = 'max-accuracy-level';
 const ENABLED = 'enabled';
 
-const APP_PERMISSIONS_TABLE = 'gnome';
-const APP_PERMISSIONS_ID = 'geolocation';
+const APP_PERMISSIONS_TABLE = 'location';
+const APP_PERMISSIONS_ID = 'location';
 
 var GeoclueAccuracyLevel = {
     NONE: 0,